package pres.liko.blackapi.service;

import pres.liko.blackapi.pojo.Dc3BlackApi;
import pres.liko.iot.bean.R;
import reactor.core.publisher.Mono;

import java.util.Set;

/**
 * @ClassName: BlackService
 * @Auther: liko
 * @Description:
 * @Date: 2022/11/2 21:48
 */
public interface BlackApiService {
    /**
     * 添加api
     *
     * @param blackApiMono
     * @return
     */
    Mono<R<Object>> addApi(Mono<Dc3BlackApi> blackApiMono);

    /**
     * 查询全部
     *
     * @return
     */
    Mono<R<Set<String>>> findAllEnable();

    /**
     * 修改状态按照id
     *
     * @return
     */
    Mono<R<Object>> updateEnableById(String id, String deleted);

    /**
     * 删除按照id
     *
     * @param id
     * @return
     */
    Mono<R<Object>> deleteById(String id);
}
